<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>


	<title>Multi-calendar support (with padding) › Calendar: a Javascript class for Mootools</title>
	<script type="text/javascript" src="mootools-1.2.4-core-nc.js"></script>
	<script type="text/javascript" src="mootools-1.2.4.2-more.js"></script>
	<script type="text/javascript" src="calendar.compat.js"></script>
	<script type="text/javascript">		
	//<![CDATA[
		window.addEvent('domready', function() { 
			myCal = new Calendar({ fecha1: { fecha1: 'd-m-Y' }, fecha2: { fecha2: 'd-m-Y' },navigation:2});
		});
	//]]>
	</script>
	<link rel="stylesheet" type="text/css" href="iframe.css" media="screen"/>
	<link rel="stylesheet" type="text/css" href="calendar.css" media="screen"/>
</head>
<body>
	<form action="#">
			<div>
			<input id="fecha1" name="fecha1" type="text" value="<?php echo $_REQUEST["fecha1"];?>"  />
			</div>
			<div>
				<input id="fecha2" name="fecha2" type="text" value="<?php echo $_REQUEST["fecha2"];?>" />
			</div>
	<div><input type="submit" name="ingreso" value="Surtir" class="boton" /></div>
</form>
<?php
echo $_REQUEST["fecha1"].' - '.$_REQUEST["fecha2"].'<br>';
echo date('d-m-Y',strtotime($_REQUEST["fecha1"])).' - '.date('d-m-Y',strtotime($_REQUEST["fecha2"]));
 ?>
</body></html>